package com.csc.banking.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.csc.banking.bo.RoleBO;
import com.csc.banking.dao.RoleDAO;
import com.csc.banking.domain.Role;

@Service
public class RoleBOImpl implements RoleBO {
	@Autowired
	private RoleDAO roleDAO;

	@Override
	public List<Role> getAllRoles() {
		return roleDAO.getAllRoles();
	}

	@Override
	public Role getRole(int idRole) {
		return roleDAO.getRole(idRole);
	}

	@Override
	public void addRole(Role role) {
		roleDAO.addRole(role);
	}

	@Override
	public void updateRole(Role role) {
		roleDAO.updateRole(role);
	}

	@Override
	public void deleteRole(int idRole) {
		roleDAO.deleteRole(idRole);
	}

}
